 //
//  ImageCell.m
//  02-UICollectionView的复习使用
//
//  Created by J on 15/11/13.
//  Copyright © 2015年 JZJ. All rights reserved.
//

#import "ImageCell.h"
@interface ImageCell()
@property (weak, nonatomic) IBOutlet UIImageView *imageView;

@end
@implementation ImageCell


- (void)awakeFromNib{
    
    
    self.imageView.layer.borderWidth = 3;
    self.imageView.layer.borderColor = [UIColor whiteColor].CGColor;
    self.imageView.layer.cornerRadius= 5;
    self.imageView.clipsToBounds=YES;//超出bounds部分 剪切掉
    
}

- (void)setImage:(NSString *)image{//顺便利用set方法赋值
    
    
    
    _image = [image copy];
    self.imageView.image= [UIImage imageNamed:image];
    

    
}
@end
